package com.kaimy.model.factory 
{
	import com.kaimy.model.vo.ModelVO;

	/**
	 * @author jbonfante
	date: Aug 2, 2009
	for: Roundarch Inc.
 
	Document Information:
	Project: KaimysAwesomeFlashProject
	Package: com.kaimy.model.factory.ModelFactory
	 */
	public class ModelFactory 
	{
		public static var _instance:ModelFactory = new ModelFactory();
		
		public function ModelFactory()
		{
			if(!_instance)null;
			else
			{
				throw Error("Please use getInstance to access class.");
			}
		}

		public static function getInstance() : ModelFactory
		{
			if(!_instance) _instance = new ModelFactory();
			return _instance;
		}
		
		public function createVO(props:Object):ModelVO
		{
			var slideVO:ModelVO = new ModelVO(props.count, props.constructType, props.constructName, props.imageName,props.imageType, props.imageDef, props.url);
			return slideVO;
		}
	}
}
